package define;

public enum ExcelType
{
	E_TABLE_EXT("table"),
	E_TREE_EXT("tree"),
	E_REFERENCE_EXT("reference"),
	;
	
	private String m_name;
	
	private ExcelType(String name)
	{
		m_name = name;
	}
	
	public String getName()
	{
		return m_name;
	}
	
	public static ExcelType getType(String name)
	{
		name = name.toLowerCase();
		for(ExcelType type: ExcelType.values())
		{
			if(name.compareTo(type.getName()) == 0)
			{
				return type;
			}
		}
		return null;
	}
}
